package com.lzy;

import com.lzy.portRandom.StartCommand;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
//开启数据库事务
@EnableTransactionManagement
//注册发现
@EnableDiscoveryClient
//远程调用
@EnableFeignClients
public class XfServerApplication {
    public static void main(String[] args) {
        new StartCommand(args);
        SpringApplication.run(XfServerApplication.class, args);
    }
}


